package Homework.Top2;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请命名文件：（中文）");
        String chinese=in.next();
        String style=chinese.substring(0,chinese.lastIndexOf("."));
        int n=0;
        boolean a=true;
        for (int i=0;i<style.length();i++){
            n=style.charAt(i);
            if (!(19968<=n&&n<40869)){
                a=false;
            }
        }
        if (a&&(chinese.endsWith(".zip")||chinese.endsWith(".java")||chinese.endsWith(".rar"))){
            System.out.println("格式正确，正在提交");
        }else {
            System.out.println("格式不正确，无法提交");
        }
    }
}
